<%@ page language="java" pageEncoding="UTF-8"%>
<div ng-controller="SoftwareCheckController">
	<div class="panel panel-default">
		<div class="panel-heading">
			软件审核
		</div>
		<div class="panel-body">
			<table class="table table-hover">
				<tbody>
					<tr>
						<th>
							ID
						</th>
						<th>
							名称
						</th>
						<th>
							创建时间
						</th>
						<th>
							操作
						</th>
					</tr>
				</tbody>
				<tbody>
					<tr ng-repeat="software in softwares.data">
						<td>
							{{software.id}}
						</td>
						<td>
							{{software.name}}
						</td>
						<td>
							{{software.create_time | formatDate}}
						</td>
						<td>
							<button type="button" class="btn btn-primary btn-xs" ng-click="pre(software)"><i class="glyphicon glyphicon-share"></i> 预览</button>
							<button type="button" class="btn btn-success btn-xs" ng-click="edit(software)"><i class="glyphicon glyphicon-edit"></i> 编辑</button>
							<button type="button" class="btn btn-success btn-xs" ng-click="pass(software)"><i class="glyphicon glyphicon-ok-circle"></i> 通过</button>
							<button type="button" class="btn btn-danger btn-xs" ng-click="failure(software)"><i class="glyphicon glyphicon-remove-sign"></i> 不通过</button>
						</td>
					</tr>
				</tbody>
			</table>
			
			<paginate page-count="softwares.page_count" sum="softwares.data_sum" pn="softwares.pn" click="findCheck"></paginate>
		</div>
	</div>
</div>